<%-- 
    Document   : addPartnerDetail
    Created on : Jul 12, 2013, 7:31:27 PM
    Author     : jitendra
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="../common/script.jsp" %>

<script type="text/javaScript">           
    var rules=new Array();
    rules[0]='name|required|please select name';
    rules[1]='address|required|please select name'; 
    rules[2]='phone|required|please select name'; 
    rules[3]='contact1Number|mask|0123456789'; 
    rules[4]='contact2Number|mask|0123456789'; 
    rules[5]='contact3Number|mask|0123456789'; 
    rules[6]='phone|mask|0123456789'; 
</script>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="../common/title.jsp" %>
    </head>
    <body onLoad="yav.init('form1',rules,'inline');">
        <%@include file="../common/header.jsp" %>
        <%@include file="../common/menu.jsp" %>
        <div class="in_02" >
            <%@include file="../common/message.jsp" %>
            <form:form id="form1" modelAttribute="partnerDetail" action="editPartnerDetail.htm" method="POST">
                <fieldset>
                    <legend>Edit Partner Details</legend>
                    <table class="formTable">
                        <tr>
                            <td>Name:<br/><form:input path="name" id="name" class="userInputLarge"/><span id="errorsDiv_name"></span></td>
                            <td>Address:<br/><form:textarea path="address" id="address" class="userInputLarge"/><span id="errorsDiv_address"></span></td>
                        </tr>
                        <tr>
                            <td>Phone:<br/><form:input path="phone" id="phone" class="userInputLarge"/><span id="errorsDiv_phone"></span></td>
                        </tr>
                        
                        <tr>
                            <td>Contact Person:<br/><form:input path="contact1Person" id="contact1Person" class="userInputLarge"/></td>
                            <td>Contact Number:<br/><form:input path="contact1Number" id="contact1Number" class="userInputLarge"/></td>
                        </tr>
                        <tr>
                            <td>Contact Person:<br/><form:input path="contact2Person" id="contact2Person" class="userInputLarge"/></td>
                            <td>Contact Number:<br/><form:input path="contact2Number" id="contact2Number" class="userInputLarge"/></td>
                        </tr>
                        
                        <tr>
                            <td>Contact Person:<br/><form:input path="contact3Person" id="contact3Person" class="userInputLarge"/></td>
                            <td>Contact Number:<br/><form:input path="contact3Number" id="contact3Number" class="userInputLarge"/></td>
                        </tr>
                        <tr>
                            <td>Description:<br/><form:textarea path="description" id="description" class="userInputLarge"/></td>
                        </tr>
                        
                        <tr>
                            <td><form:hidden path="partnerDetailId"/>
                                <input type="hidden" name="partnerID" value="${partnerID}">
                                <input type="button" name="Cancel" value="Cancel"  onclick="location.href='../partner/editPartner.htm?partnerID=${partnerID}'"></td>                       
                            <td><input type="submit" name="btnSubmit" class="userInputFormSubmit" value="Update" onclick="return yav.performCheck('form1', rules, 'inline');"/></td>
                        </tr>
                        
                    </table>

                    <spring:hasBindErrors name="partnerDetail">
                        <div class="error">
                            <form:errors path="*"/>
                        </div>
                    </spring:hasBindErrors>
                </fieldset>
            </form:form>
        </div>
    </body>
</html>

